package com.xujie.sportsmeeting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 运动员成绩详情VO
 */
@Data
@Schema(description = "运动员成绩详情")
public class AthleteScoreDetailVO {

    @Schema(description = "成绩ID")
    private Long scoreId;

    @Schema(description = "项目名称")
    private String eventName;

    @Schema(description = "项目编码")
    private String eventCode;

    @Schema(description = "成绩值")
    private String scoreValue;

    @Schema(description = "格式化成绩")
    private String formattedScore;

    @Schema(description = "排名")
    private Integer ranking;

    @Schema(description = "得分")
    private BigDecimal points;

    @Schema(description = "是否决赛")
    private Boolean isFinal;

    @Schema(description = "成绩类型")
    private String scoreType;

    @Schema(description = "记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordTime;

    @Schema(description = "是否破纪录")
    private Boolean isRecord;

    @Schema(description = "奖牌类型")
    private String medalType; // gold, silver, bronze

    @Schema(description = "备注")
    private String remarks;
}
